<template>
  <div>兄弟2---{{ money }} --- {{ message }}</div>
</template>

<script>
import bus from './bus'
export default {
  data () {
    return {
      money: 0,
      message: ''
    }
  },
  mounted () {
    bus.$on('mybrother', (val, msg) => {
      //   console.log('兄弟二组件中...', val)
      this.money = val.money
      this.message = val.message

      console.log(msg)
    })
  }
}
</script>
